
<div class='span12'>
    <!-- HEADER -->
    <div class='row-fluid'>
        <div class='span12'>
            <div class='page-header'>
                <h1>
                    <i class='icon-cogs'></i>
                    <span>UTILITY</span>
                </h1>
            </div>
        </div>
    </div>

    <!-- END OF HEADER -->


    <div class="row-fluid">
        <div class="span12 box bordered-box blue-border">
            <div class="box-header dark-background">
                <div class="title"><?= $title;?></div>
                <div class="actions">
                    <a href="#" class="btn box-remove btn-mini btn-link"><i class="icon-remove"></i>
                    </a>
                    <a href="#" class="btn box-collapse btn-mini btn-link"><i></i>
                    </a>
                </div>
            </div>

            <div class="box-content">
                <form method="post" action="<?= URL::current();?>">
                    <p>
                        <small>This utility is for firing any MySQL statement, remember it will not execute any Query result.</small>
                        <small>Note: It can harm your database too, carefully use it.</small>
                    </p>

                    <div>
                        <?= Form::token(); ?>
                    </div>

                    <p class="text-dark-orange">
                        <?=
                        (Session::get('message') ? Session::get('message') : '');
                        ?>
                    </p>


                    <div class="control-group">
                        <label class="control-label">Default Email <span class="text text-error">*</span></label>

                        <div class="controls">
                            <textarea class="form-control input-xxlarge" rows="3" name="sql"></textarea>
                        </div>
                    </div>

                    <p>
                        <button id="test" type="submit" class="btn btn-danger"  <?php if(Config::get('application.mode')){?>onclick="alert ('Sorry! Not allowed in demo mode '); return false;" 
                                        <?}else{?>onclick="return confirm('Are you sure ?');"<?php }?>>Execute</button>
                        <span id="ajax_msg"></span>
                    </p>

                </form>

                <hr class="hr-normal">


            </div>
        </div>
    </div>


    <!-- END OF CONTENT -->
</div>
